# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit python eutils 

KEYWORDS="~x86 ~ppc ~sparc ~mips ~alpha ~arm ~hppa ~amd64 ~ia64"
DESCRIPTION="Python FUSE bindings"
HOMEPAGE="http://www.inf.bme.hu/~mszeredi/avfs/"
SRC_URI="http://bugs.gentoo.org/fuse-python-20060312.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
IUSE=""

RDEPEND=">=dev-lang/python-2.3
    	>=sys-fs/fuse-1.3"

RESTRICT="fetch"

pkg_nofetch(){
    einfo "Download http://bugs.gentoo.org/attachment.cgi?id=81979"
    einfo "and save it as fuse-python-20060312.tar.bz2"
    einfo "wget -O fuse-python-20060312.tar.bz2 http://bugs.gentoo.org/attachment.cgi?id=81979"
}

src_unpack() {
    unpack ${A}
    cd ${WORKDIR}/python
    epatch ${FILESDIR}/fix_fuse-compat.diff || die "patching failed"
}

src_compile() {
    cd ${WORKDIR}/python
    python setup.py build || die "Couldn't compile"
}

src_install() {
    einfo "install to ${D}/usr"
    cd ${WORKDIR}/python
    python setup.py install --prefix=${D}/usr || die "Couldn't install"
}
